#pragma once

void int2str(int I, char* str);
bool byte_aligned(Bits *Input);
unsigned int nextbits(Bits *Buff, int n);
unsigned int readbits(Bits *Buff, int n);
unsigned int nextbytes(byte **pIn, int n);
unsigned int readbytes(byte **p, int n);
byte readbit(Bits *p);
unsigned int Exp_Golomb_U(Bits *Input);
int Exp_Golomb_S(Bits *Input);
int more_rbsp_data(Bits Input, byte *rbsp_byte, int NumBytesInRBSP);
int SetActiveSeqParams(uint32 id);
int SetActivePicParams(uint32 id);
LPSEQ_PARAM_SET_DATA GetActiveSeqParams();
LPPIC_PARAM_SET_DATA GetActivePicParams();
uint32 nextMbAddress(uint32 n, LPPICADDPARAMS Params);
uint32 GetAddParams(LPPICADDPARAMS Params);
uint32 PrintBytes(byte *Start, uint32 n);